package com.zhisuo.apicenter.model;

import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class ZhiSuoSystemSettingRowMapper implements RowMapper<ZhiSuoSystemSetting> {

    @Override
    public ZhiSuoSystemSetting mapRow(ResultSet rs, int rowNum) throws SQLException {
        ZhiSuoSystemSetting systemSetting = new ZhiSuoSystemSetting();
        systemSetting.setId(rs.getInt("id"));
        systemSetting.setStart_time(rs.getString("start_time"));
        systemSetting.setEnd_time(rs.getString("end_time"));
        return systemSetting;
    }

}
